xen.git
20 years agoDisable build of pygrub for now - does not build with e2fsprogs-1.35
smh22@firebug.cl.cam.ac.uk [Tue, 2 Aug 2005 11:34:38 +0000 (11:34 +0000)]
Disable build of pygrub for now - does not build with e2fsprogs-1.35

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix typo in pygrub code
smh22@firebug.cl.cam.ac.uk [Tue, 2 Aug 2005 11:27:58 +0000 (11:27 +0000)]
Fix typo in pygrub code

20 years agoRemainder of ACM patch (hgrrrr).
smh22@firebug.cl.cam.ac.uk [Tue, 2 Aug 2005 10:15:17 +0000 (10:15 +0000)]
Remainder of ACM patch (hgrrrr).

Signed-off-by: Reiner Sailer <sailer@watson.ibm.com>
Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoThe patches below clean-up sHype-related file names in the tools subtree
smh22@firebug.cl.cam.ac.uk [Tue, 2 Aug 2005 09:37:00 +0000 (09:37 +0000)]
The patches below clean-up sHype-related file names  in the tools subtree
and security policy-versioning and data structures in the xen subtree
(ACM):

 *  the very generic tools directory name "policy"  is changed to
    "security" and the included "policy_tool" to "secpol_tool"

 * the single constant POLICY_INTERFACE_VERSION is replaced
   by ACM_INTERFACE_VERSION; the security policy headers are
   versioned independently since the policy can be supplied
   at boot time instead of through the  hypervisor interface

Signed-off-by: Reiner Sailer <sailer@watson.ibm.com>
Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoThe attached patch adds the support that was only stubbed in to be able
smh22@firebug.cl.cam.ac.uk [Tue, 2 Aug 2005 09:31:47 +0000 (09:31 +0000)]
The attached patch adds the support that was only stubbed in to be able
to support having reading the boot loader config when you're using a
whole disk (eg, file:/root/disk.img,xvda,w) as opposed to just a
partition.

This reads the partition table in the MBR to find the active partition
and then passes that offset down into the filesystem reading code.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years ago* support proper scsi disk name
smh22@firebug.cl.cam.ac.uk [Tue, 2 Aug 2005 09:29:56 +0000 (09:29 +0000)]
* support proper scsi disk name
* xvd now has an official lanana assigned major, use it

Signed-off-by: Jeremy Katz <katzj@redhat.com>
20 years agoRevert unintended enabling of grant tables for netback/netfront
smh22@firebug.cl.cam.ac.uk [Tue, 2 Aug 2005 09:26:30 +0000 (09:26 +0000)]
Revert unintended enabling of grant tables for netback/netfront

20 years agocorrect wrong variables pass to the set_pte_at macro.
vh249@arcadians.cl.cam.ac.uk [Mon, 1 Aug 2005 16:00:17 +0000 (16:00 +0000)]
correct wrong variables pass to the set_pte_at macro.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
20 years agoManual merge.
smh22@firebug.cl.cam.ac.uk [Mon, 1 Aug 2005 10:48:24 +0000 (10:48 +0000)]
Manual merge.

20 years agoMinor clean ups of time.c and partial build fixes for 2.4
smh22@firebug.cl.cam.ac.uk [Mon, 1 Aug 2005 10:45:07 +0000 (10:45 +0000)]
Minor clean ups of time.c and partial build fixes for 2.4

20 years agoPDB: convert ptrace.c and traps.c changes to local patches
ach61@arcadians.cl.cam.ac.uk [Mon, 1 Aug 2005 10:43:16 +0000 (10:43 +0000)]
PDB: convert ptrace.c and traps.c changes to local patches

20 years agoThis patch adds two macros for construction of the
kaf24@firebug.cl.cam.ac.uk [Mon, 1 Aug 2005 09:26:51 +0000 (09:26 +0000)]
This patch adds two macros for construction of the
frame_and_sectors field in blkif messages, to eliminate the
"magic shifts" in the blkif code.

It also increases the number of bits representing the sector
number within a page, from 3 to 5, to allow page sizes up to
16K (needed for IA64).

Tested to still work on x86.

Signed-off-by: Matthew Chapman <matthewc@hp.com>
20 years agoWhile merging my development tree with the latest hg tree I noticed that
kaf24@firebug.cl.cam.ac.uk [Mon, 1 Aug 2005 09:16:25 +0000 (09:16 +0000)]
While merging my development tree with the latest hg tree I noticed that
VMX support was broken. When you boot an unmodified Linux kernel it gets
stuck in the "Calibrating delay" loop.  The reason for this is that the
vmx code is repeatedly delivering timer interrupts.

Correcting the MILLISECS() and friends macros to return s_time_t instead
of ULL fixes this problem. The other changes are just to get rid of
redundant code and variables.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoPDB: roll out changes to ptrace.c and traps.c
ach61@arcadians.cl.cam.ac.uk [Sun, 31 Jul 2005 21:45:52 +0000 (21:45 +0000)]
PDB: roll out changes to ptrace.c and traps.c

20 years agodom_mem_ops address_bitsd fix.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 11:21:39 +0000 (11:21 +0000)]
dom_mem_ops address_bitsd fix.

20 years agox86_32 build fix.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:40:39 +0000 (10:40 +0000)]
x86_32 build fix.

20 years agoThis patch renames balloon command to "set-mem", so instead of "xm
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:37:30 +0000 (10:37 +0000)]
This patch renames balloon command to "set-mem", so instead of "xm
balloon", we will use "xm set-mem" (as suggested by TODO list)

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
20 years agoThis patch does 2 jobs:
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:36:53 +0000 (10:36 +0000)]
This patch does 2 jobs:

- Enforce the number of CPUs dom0 will take. See the new variable
"dom0-cpus" in xend-config.sxp (you will want to set this variable to
1 on SMP systems)

- Balloon out dom0 memory when creating domU, if there is not enough
free memory. The lowest level we will balloon out is configured via
the new variable "dom0-min-mem" in xend-config.sxp

I still have a doubt: where to put the code to enforce dom0-cpus. At
the moment I put it into
python/xen/xend/server/SrvDaemon.py, and hopefully that is resonable
enough. Any comment?

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
20 years agoPatch for 64-bit VMX guest destroy
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:36:11 +0000 (10:36 +0000)]
Patch for 64-bit VMX guest destroy

64-bit VMX guest can't be destroyed without this patch, as guest page's
reference count problem.
This patch made two point of reference count correct:
1. In invlpg, the old page count need put.
2. There is a specail case for fl1's shadow reference count.=20
=20

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoHere is our latest patch to enable the Xen tools to
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:34:45 +0000 (10:34 +0000)]
Here is our latest patch to enable the Xen tools to
build and work with IA64 Xen.
Signed-off-by: Matt Chapman <matthewc@hp.com>
Acked-by: Dan Magenheimer <dan.magenheimer@hp.com>
20 years agoAttached patch adds a DMA zone to xen, also modifies xen_contig_memory()
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:31:22 +0000 (10:31 +0000)]
Attached patch adds a DMA zone to xen, also modifies xen_contig_memory()
to ask for DMA pages.
Signed-off-by: srparish@us.ibm.com
20 years agoThis patch updates the CPU field in xm list for multi-vcpu domains.
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:27:12 +0000 (10:27 +0000)]
This patch updates the CPU field in xm list for multi-vcpu domains.
When a dom runs on multiple physical cpus, the CPU field doesn't have
much meaning.  The suggested fix was to replace the value with '-'.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
20 years ago... for dom0 if we know we'll need it. This is the xen
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:24:41 +0000 (10:24 +0000)]
... for dom0 if we know we'll need it.  This is the xen
counterpart to the previous xenlinux patch which adds this
info to the kernel.  Also adds some printk's.

20 years ago... so it builds again and also add a note to the xen elf header
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:24:06 +0000 (10:24 +0000)]
... so it builds again and also add a note to the xen elf header
that this kernel should be booted in shadow-translated mode.

20 years agoReally just basic preparation: switch over PAE builds to the new
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:23:07 +0000 (10:23 +0000)]
Really just basic preparation: switch over PAE builds to the new
shadow code, drop old dummy functions, add (fewer) new ones.

20 years agofix x86_64 domain0 /dev/mem issue
kaf24@firebug.cl.cam.ac.uk [Fri, 29 Jul 2005 10:22:03 +0000 (10:22 +0000)]
fix x86_64 domain0 /dev/mem issue
x86_64 miss the define of ARCH_HAS_DEV_MEM, that causes
/drivers/char/mem.c to not show low 1M memory correctly.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
20 years agoPDB: add some additional files
ach61@arcadians.cl.cam.ac.uk [Thu, 28 Jul 2005 21:32:13 +0000 (21:32 +0000)]
PDB: add some additional files

20 years agoPDB: process targets
ach61@arcadians.cl.cam.ac.uk [Thu, 28 Jul 2005 21:28:23 +0000 (21:28 +0000)]
PDB: process targets

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:34:45 +0000 (12:34 +0000)]
merge?

20 years agoDon't unbind port when event channel binding fails.
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:33:53 +0000 (12:33 +0000)]
Don't unbind port when event channel binding fails.
This happens when xend tries to introduce the same domain twice.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSimplify code by acking watch as soon as we read it.
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:29:23 +0000 (12:29 +0000)]
Simplify code by acking watch as soon as we read it.
Since watches no longer block anyone, this doesn't change semantics.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSimplify code by making in and out pointers internal to xenbus_xs.c
cl349@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 12:25:13 +0000 (12:25 +0000)]
Simplify code by making in and out pointers internal to xenbus_xs.c
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoNicer platform timer string (include clock rate in mhz).
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 10:20:08 +0000 (10:20 +0000)]
Nicer platform timer string (include clock rate in mhz).
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix irq.c warning, from aq.
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 09:37:53 +0000 (09:37 +0000)]
Fix irq.c warning, from aq.

20 years agoFix gnttab bug in blkfront.
kaf24@firebug.cl.cam.ac.uk [Thu, 28 Jul 2005 09:10:05 +0000 (09:10 +0000)]
Fix gnttab bug in blkfront.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoSlightly better time debugging support in Xen.
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 23:15:15 +0000 (23:15 +0000)]
Slightly better time debugging support in Xen.

20 years agoGet rid of internet_copy.jpg once more.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:41:49 +0000 (18:41 +0000)]
Get rid of internet_copy.jpg once more.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't ignore exceptions here - the possible RuntimeError is handled already.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:40:32 +0000 (18:40 +0000)]
Don't ignore exceptions here - the possible RuntimeError is handled already.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoIntroduce dom0 to the store.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:31:18 +0000 (18:31 +0000)]
Introduce dom0 to the store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoHandle introduce_domain failing when the domain is already introduced.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 18:31:03 +0000 (18:31 +0000)]
Handle introduce_domain failing when the domain is already introduced.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAlways pass around the store machine frame number instead of the linear address.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:17:09 +0000 (17:17 +0000)]
Always pass around the store machine frame number instead of the linear address.
Also cleanup IOCTL_PRIVCMD_INITDOMAIN_STORE.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd xc_init_store python binding.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:06:02 +0000 (17:06 +0000)]
Add xc_init_store python binding.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix read of integers from database on event channel restore.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:04:47 +0000 (17:04 +0000)]
Fix read of integers from database on event channel restore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake XENSTORED_DEBUG create a xenstored trace logfile.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:03:00 +0000 (17:03 +0000)]
Make XENSTORED_DEBUG create a xenstored trace logfile.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove SIF_BLK_BE_DOMAIN and SIF_NET_BE_DOMAIN definitions to where they are used.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 17:00:24 +0000 (17:00 +0000)]
Move SIF_BLK_BE_DOMAIN and SIF_NET_BE_DOMAIN definitions to where they are used.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:57:37 +0000 (16:57 +0000)]
merge?

20 years agoDon't auto-add domains we don't know about.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:57:01 +0000 (16:57 +0000)]
Don't auto-add domains we don't know about.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd IBM Cyclone support to Xen.
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 16:18:02 +0000 (16:18 +0000)]
Add IBM Cyclone support to Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd HPET support to Xen. It is quicker to access and more
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 15:32:44 +0000 (15:32 +0000)]
Add HPET support to Xen. It is quicker to access and more
precise than the PIT.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoOn opt_nosmp, also force num_cores to 1. Do this in setup.c
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 11:20:47 +0000 (11:20 +0000)]
On opt_nosmp, also force num_cores to 1. Do this in setup.c
instead of cpu/common.c. This is where opt_nosmp is defined,
and it reduces diff of cpu/ subdir against native Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoKill a bad assertion.
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 11:02:30 +0000 (11:02 +0000)]
Kill a bad assertion.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoMerge.
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 10:54:39 +0000 (10:54 +0000)]
Merge.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoMake sure that opt_nosmp also disables hyperthreading. This stops us
sos22@douglas.cl.cam.ac.uk [Wed, 27 Jul 2005 10:52:29 +0000 (10:52 +0000)]
Make sure that opt_nosmp also disables hyperthreading.  This stops us
from trying to create domains on non-existent threads, which would
lead to a rather nasty crash.

Signed-off-by: Steven Smith, sos22@cam.ac.uk
20 years agoRename file with space in name.
cl349@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 09:56:31 +0000 (09:56 +0000)]
Rename file with space in name.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : tools/sv/images/internet copy.jpg => tools/sv/images/internet_copy.jpg

20 years agoFix memory reservation in XenLinux.
kaf24@firebug.cl.cam.ac.uk [Wed, 27 Jul 2005 09:24:51 +0000 (09:24 +0000)]
Fix memory reservation in XenLinux.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFrob the Linux-2.6 configs to enable PAE (HIGHMEM_64G) if XEN_TARGET_X86_PAE=y
iap10@freefall.cl.cam.ac.uk [Wed, 27 Jul 2005 00:27:36 +0000 (00:27 +0000)]
Frob the Linux-2.6 configs to enable PAE (HIGHMEM_64G) if XEN_TARGET_X86_PAE=y

Signed-off-by: ian@xensource.com
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 18:41:39 +0000 (18:41 +0000)]
merge?

20 years agoClean up xenbus code not to use priorities.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:38:33 +0000 (17:38 +0000)]
Clean up xenbus code not to use priorities.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix case where watch callback unregisters itself: do not try to ack it
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:27:26 +0000 (17:27 +0000)]
Fix case where watch callback unregisters itself: do not try to ack it
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoImplement xenbus_dev_error() and xenbus_dev_ok() functions
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:25:57 +0000 (17:25 +0000)]
Implement xenbus_dev_error() and xenbus_dev_ok() functions
for better error reporting using the store.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoScrub initial xenstore page, free xendev structure.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:24:22 +0000 (17:24 +0000)]
Scrub initial xenstore page, free xendev structure.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix locking: probe can be called from several places, so ensure
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:22:38 +0000 (17:22 +0000)]
Fix locking: probe can be called from several places, so ensure
we lock for it.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix bus watch code, and clean up a little.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:19:38 +0000 (17:19 +0000)]
Fix bus watch code, and clean up a little.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoNote about when device_find is fixed
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:18:55 +0000 (17:18 +0000)]
Note about when device_find is fixed
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoModify to assume transactions
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:18:11 +0000 (17:18 +0000)]
Modify to assume transactions
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDo not use device_find: crashes for some reason
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:16:55 +0000 (17:16 +0000)]
Do not use device_find: crashes for some reason
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix missing argument rename in xenbus_exists.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:15:53 +0000 (17:15 +0000)]
Fix missing argument rename in xenbus_exists.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoGrab lock around registering watch.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:07:50 +0000 (17:07 +0000)]
Grab lock around registering watch.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd watch for dynamic add/remove of devices.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:07:05 +0000 (17:07 +0000)]
Add watch for dynamic add/remove of devices.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix return from xenbus_scanf: returns number scanned, not 0!
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 17:04:33 +0000 (17:04 +0000)]
Fix return from xenbus_scanf: returns number scanned, not 0!
Fix xenbus_write args in xenbus_printf
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMajor xenbus cleanup
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:59:40 +0000 (16:59 +0000)]
Major xenbus cleanup
1) Make xenbus_* functions first-class citizens, evict xs_ prefix.
2) Add xenbus_scanf and xenbus_printf instead of multiple functions
3) Remove unused code from xenbus.c
4) Use standard debugging macros.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoManual merge.
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:17:04 +0000 (16:17 +0000)]
Manual merge.

20 years agoAttached patch removes the empty domain if
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 16:16:39 +0000 (16:16 +0000)]
Attached patch removes the empty domain if
xc.memory_increase_reservation fails.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
20 years agoUpdate python bindings - xs_watch doesn't support a priority anymore.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:57:18 +0000 (15:57 +0000)]
Update python bindings - xs_watch doesn't support a priority anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't enter sv subdirectory until its Makefile supports targets
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:37:40 +0000 (15:37 +0000)]
Don't enter sv subdirectory until its Makefile supports targets
like `clean' or actually does anything useful.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove ill-conceived concept of watches blocking reply on
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:26:32 +0000 (15:26 +0000)]
Remove ill-conceived concept of watches blocking reply on
connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way
of avoiding them: it is reasonable for someone to ignore watch
notifications while doing other actions, and that means that
we can do other writes.  These writes can block pending other
watchers; if one of these is the process blocked awaiting our
ack, we deadlock.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix bug where transaction fires multiple events.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:24:28 +0000 (15:24 +0000)]
Fix bug where transaction fires multiple events.
Add general trace() call to help future debugging.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix bug where watch messages doesn't go out. Also change xs_test
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:23:50 +0000 (15:23 +0000)]
Fix bug where watch messages doesn't go out.  Also change xs_test
to more closely represent xenbus behaviour so we can see the bug.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAllow test.sh to take arg: name of test to start with
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:21:32 +0000 (15:21 +0000)]
Allow test.sh to take arg: name of test to start with
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake testing more reliable: wait for event after async so we know
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:21:00 +0000 (15:21 +0000)]
Make testing more reliable: wait for event after async so we know
child has done command
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoChange watches: operations block until everyone has acked.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:20:09 +0000 (15:20 +0000)]
Change watches: operations block until everyone has acked.
Watch events are no longer sent to self
Watches no longer take a priority
async and asyncwait commands for xs_test, now we need to continue
despite blocking ops.
Print test name at end of verbose run on failure.
Use --trace-file arg to xenstored when testing
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoThis patch prevents you from getting a screen full of stack trace when
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:16:39 +0000 (15:16 +0000)]
This patch prevents you from getting a screen full of stack trace when
trying to run commands like xm list as a normal user, and instead provides a
helpful error message.

Signed-off-by: Sean Dague <sean@dague.net>
20 years agoManual merge.
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:16:12 +0000 (15:16 +0000)]
Manual merge.

20 years agoChange from bool indicating blocked to an enum: when watches go
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:13:56 +0000 (15:13 +0000)]
Change from bool indicating blocked to an enum: when watches go
synchronous this makes it easier (because then we have two reasons
to block)
Instead of using return value, use explicit state member inside
struct connection.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoTest and fix acknowedge_watch from returning EINVAL.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:09:43 +0000 (15:09 +0000)]
Test and fix acknowedge_watch from returning EINVAL.
Also ensure that daemon re-xmits event if they ack wrong thing
(otherwise confused clients get stuck, as we will send no more
data while awaiting ack).
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix testsuite to ignore tool/ dir.
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 15:08:22 +0000 (15:08 +0000)]
Fix testsuite to ignore tool/ dir.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoStart of code to persistent store connections when xenstored restarts
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 14:02:33 +0000 (14:02 +0000)]
Start of code to persistent store connections when xenstored restarts
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd XenSV back into the repository.
twilkie@paploo.uk.xensource.com [Tue, 26 Jul 2005 13:56:30 +0000 (13:56 +0000)]
Add XenSV back into the repository.
Now uses Python Server Pages, not twisted.

20 years ago# HG changeset patch
cl349@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 13:11:01 +0000 (13:11 +0000)]
# HG changeset patch
# User Rusty Russell <rusty@rustcorp.com.au>
# Node ID a92163adedcfcff0d05c965d09da747f3c8aa13e
# Parent  63ab20781afa311300f3a8e832744292014ea7f6

Remove ill-conceived concept of watches blocking reply on connection which did write/mkdir/rm/setperm etc.
This causes deadlocks in real life, and I can't see a sane way of avoiding them: it is reasonable for someone to ignore watch notifications while doing other actions, and that means that we can do other writes.  These writes can block pending other watchers; if one of these is the process blocked awaiting our ack, we deadlock.

diff -r 63ab20781afa -r a92163adedcf tools/xenstore/xenstored_core.c

20 years agoFix restart/poweroff properly. From aq.
kaf24@firebug.cl.cam.ac.uk [Tue, 26 Jul 2005 10:09:06 +0000 (10:09 +0000)]
Fix restart/poweroff properly. From aq.

20 years ago- allows to optionally boot the system with a policy already being
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:19:14 +0000 (21:19 +0000)]
- allows to optionally boot the system with a policy already being
  active at startup; this works by adding a module line into the grub
  configuration file and placing the binary policy generated by the
  policy tool into the boot directory; This assumes that a maximum of
  one module line is used for the initrd in the grub configuration
  file - Question: do users pass more than one module to the kernel?
- enables the policy hypervisor call on x86/64
- some function prototypes moved to include files
- moves the version number in the java tool up to the current
  version (a better way of doing this will be submitted soon)

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Signed-off-by: Reiner Sailer <sailer@us.ibm.com>
20 years agoImprove guest time keeping
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:03:40 +0000 (21:03 +0000)]
Improve guest time keeping

Even though we accounted for lost ticks, the accounting was not precise.
Specifically, we didn't account for the delay in calling the ac_timer
handler.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoReally enable gdbserver for real mode code.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:03:25 +0000 (21:03 +0000)]
Really enable gdbserver for real mode code.

Missed out one instance where we need to check if we're running on
1:1 page tables with guest paging disabled.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoUse hg root instead of bk root.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:03:05 +0000 (21:03 +0000)]
Use hg root instead of bk root.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoRestore command line parsing code from qemu-0.6.1
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:02:50 +0000 (21:02 +0000)]
Restore command line parsing code from qemu-0.6.1

This enables cdrom ejection (both file based and physical i.e. /dev/cdrom)

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoAllow multiple disk images per guest.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:02:34 +0000 (21:02 +0000)]
Allow multiple disk images per guest.

Signed-off-by: Yunfeng Zhao <yunfeng.zhao@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoFix the path to qemu-dm
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:02:24 +0000 (21:02 +0000)]
Fix the path to qemu-dm

20 years agoImplement the I/O bitmap vm execution control.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:02:09 +0000 (21:02 +0000)]
Implement the I/O bitmap vm execution control.

With this patch, we should not bee seeing any vmexits for debug port
accesses.

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoDon't leave behind zombie device model processes
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:01:57 +0000 (21:01 +0000)]
Don't leave behind zombie device model processes

Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
20 years agoXen full virtualization does not handle unaligned IO with page crossing.
kaf24@firebug.cl.cam.ac.uk [Mon, 25 Jul 2005 21:01:42 +0000 (21:01 +0000)]
Xen full virtualization does not handle unaligned IO with page crossing.
Disable 32-bit PIO as a workaround.

Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>